package com.lovo.exception;

import com.lovo.enums.UserCodeEnum;
import lombok.Getter;

/**
 * @title
 * @author: luo
 * @date: 2020/11/17 17:03
 */
@Getter
public class UserException extends RuntimeException {

    private UserCodeEnum userCodeEnum;

    public UserException(UserCodeEnum userCodeEnum) {
        super(userCodeEnum.getMsg());
        this.userCodeEnum = userCodeEnum;
    }
}
